package net.sk.china.city.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 捐赠中间对象 ar_donation_mapping
 * 
 * @author gxf
 * @date 2024-05-13
 */
@Data
public class ArDonationMapping
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @TableId(value = "id",type = IdType.ASSIGN_ID)
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;

    /** 捐赠id */
    private Long donateId;

    /** 来源id */
    private Long sourceId;


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("donateId", getDonateId())
            .append("sourceId", getSourceId())
            .toString();
    }
}
